/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CoalitionCirclePackage;

import java.awt.Color;
import java.awt.Point;
import java.util.List;
import java.util.Vector;

/**
 *
 * @author Heather
 */
public class CCPVCoalitionCircle extends CoalitionCircleViewerCircle
{

  public List<int[]> groups = new Vector<int[]>();

  public CCPVCoalitionCircle()
  {
  }

  public boolean containsGroup(int[] group)
  {
    for (int[] g : groups)
    {
      if (compareGroups(g, group))
        return true;
    }
    return false;
  }

  private boolean compareGroups(int[] group1, int[] group2)
  {
    if (group1.length != group2.length)
    {
      return false;
    }
    else
    {
      for (int i = 0; i < group1.length; i++)
      {
        if (group1[i] != group2[i])
        {
          return false;
        }
      }

      return true;
    }
  }
}
